//
//  LDUIDefine.swift
//  DingDongZP
//
//  Created by 三秒文化 on 2016/10/31.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

import UIKit

/** 全局frame,bounds属性*/
struct LDFrame {
    
    static let NavH: CGFloat = 64;
    static let TabbarH: CGFloat = 49;
    static let StatusbarH: CGFloat = 20;
    static let ScreenWidth: CGFloat = UIScreen.mainScreen().bounds.width
    static let ScreenHeight: CGFloat = UIScreen.mainScreen().bounds.size.height
    static let ScreenBounds: CGRect = UIScreen.mainScreen().bounds
    
    //cell中虚线的水平左右间距
    static let LineMargin_V:CGFloat = 15
    static let sampleLabsInCellH:CGFloat = 18
    static let TableCellMargin:CGFloat = 12//cell上下的间距
    //
    static let AttrLineH:CGFloat = 8
    
}
struct LDCellFrame {
    
    //cell中虚线的 contentView 中左右间距 为 margin*5 = 25 上下为margin*4 = 20
    static let Margin_H = LDMargin_V*2 //水平
    static let Margin_V:CGFloat = 4//LDMargin_V*4 //竖直
    static let LabsH = LDMargin_V*4 //高15
    
    static let Margin_Left = LDMargin_V*4 // 布局 左间距
    static let Margin_Top:CGFloat = 3// 布局 上间距
    
    
    static let RectJobFinderCellH:CGFloat = 172
}
struct LDGolbalColor {
    static let White:UIColor = UIColor(red: 1, green: 1, blue: 1, alpha: 1)
    /** 主题APP主绿色 */
    static let Green = UIColor.colorWithHexString("#006c6c", alapha: 1)
    /** 辅绿色 */
    static let GreenAssist = UIColor.colorWithHexString("#30aead", alapha: 1)
    /** 背景灰 */
    static let BgGoundGray = UIColor.colorWithHexString("#f3f3f3", alapha: 1)
    /** 橘黄色 */
    static let Orange = UIColor.colorWithHexString("#ff8125", alapha: 1)
    /** 主题 红 */
    static let Red = UIColor.colorWithHexString("#fe4c4c", alapha: 1)
    /** 标签背景颜色 灰 */
    static let TagBgColor = UIColor.colorWithHexString("#f0f5f5", alapha: 1)
}

struct LDIconColor {
    static let LightGray = UIColor.colorWithHexString("#d3d2d2", alapha: 1)
    /** 图标 深灰 */
    static let DeepGray = UIColor.colorWithHexString("#949494", alapha: 1)
    /** 图标 红 */
    static let Red = UIColor.colorWithHexString("#fe4c4c", alapha: 1)
    /** 图标 黑 */
    static let Black = UIColor.blackColor()//UIColor.init().colorWithHexString("#464948", alapha: 1)
}
struct LDFontColor {
    /** 字体黑色 */
    static let Black = UIColor.colorWithHexString("#282828", alapha: 1)
    /** 字体浅黑 */
    static let LightBlack = UIColor.colorWithHexString("#333333", alapha: 1)
    /** 字体纯黑 */
    static let DeepBlack = UIColor.colorWithHexString("#000000", alapha: 1)
    /** 字体黑色高亮 */
    static let BlackLight = UIColor.colorWithHexString("#5e5e5e", alapha: 1)
    /** 字体深灰 */
    static let DeepGray = UIColor.colorWithHexString("#797979", alapha: 1)
    /** 字体浅灰 */
    static let LightGray = UIColor.colorWithHexString("#aeaeae", alapha: 1)
    /** 字体橘黄色 */
    static let Orange = UIColor.colorWithHexString("#ff8125", alapha: 1)
    /** 字体红 */
    static let Red = UIColor.colorWithHexString("#ff2f2f", alapha: 1)
    /** 字体白 */
    static let White = UIColor.whiteColor()
    /** 字体绿色 */
    static let Green = UIColor.colorWithHexString("#30aead", alapha: 1)
    /** 字体绿色高亮 */
    static let GreenLight = UIColor.colorWithHexString("#006C6C", alapha: 1)
}
struct LDFont {
    
    static let Font11 = IPHONE6UP ? UIFont.systemFontOfSize(11) : UIFont.systemFontOfSize(11)
    static let Font12 = IPHONE6UP ? UIFont.systemFontOfSize(12) : UIFont.systemFontOfSize(12)
    static let Font13 = IPHONE6UP ? UIFont.systemFontOfSize(13) : UIFont.systemFontOfSize(13)
    static let Font14 = IPHONE6UP ? UIFont.systemFontOfSize(14) : UIFont.systemFontOfSize(14)
    static let Font15 = IPHONE6UP ? UIFont.systemFontOfSize(15) : UIFont.systemFontOfSize(15)
    static let Font16 = IPHONE6UP ? UIFont.systemFontOfSize(16) : UIFont.systemFontOfSize(16)
    static let Font18 = IPHONE6UP ? UIFont.systemFontOfSize(17) : UIFont.systemFontOfSize(17)
    static let Font20 = IPHONE6UP ? UIFont.systemFontOfSize(18) : UIFont.systemFontOfSize(18)
    
}

/**简单ip5,ip6 主要间距 */

public let IPHONE6PLUSEUP:Bool = UIScreen.mainScreen().bounds.size.width >= 414

public let IPHONE6UP:Bool = UIScreen.mainScreen().bounds.size.width >= 375

public let IPHONE6LOW:Bool = UIScreen.mainScreen().bounds.size.width < 375

/**iphone4s */
public let IPHONE4S:Bool = UIScreen.mainScreen().bounds.size.height == 480

public let headImageViewMin:CGFloat = IPHONE6UP ? 60:40
public let headImageViewMedium:CGFloat = IPHONE6UP ? 80:60
public let LDMargin_V:CGFloat = IPHONE6UP ? 5:5//暂时不在区分小大屏
public let LDMargin_H:CGFloat = IPHONE6UP ? 5:5
public let Margin_V:CGFloat = IPHONE6UP ? 5:5
public let Margin_H:CGFloat = IPHONE6UP ? 5:5

/** 灰线框 */
//public let LDLineColorDeepGray = UIColor.init().colorWithHexString("#c8c7cd", alapha: 1)
public let LDLineColorDeepGray = UIColor.colorWithHexString("#d6d6d6", alapha: 1)
/** 超浅灰色线框 */
public let LDLineColorLightGray = UIColor.colorWithHexString("#dcdcdc", alapha: 1)

/** 背景黄 */
public let LDBackGoundColorYellow = UIColor.colorWithHexString("#fffb93", alapha: 1)
/** 背景灰 */
public let LDBackGoundColorGray = UIColor.colorWithHexString("#f3f3f3", alapha: 1)
/** 背景淡灰蓝色 */
public let LDBackGoundColorGrayAndGreen = UIColor.colorWithHexString("#eef5f5", alapha: 1)
